<ul id="articles">
    <? if(empty($category[0]['Article'])) {
        ?> <li> <?__('No articles');?></li><?
    }
    else { ?>
    <li><? echo $pagination->create($url,'articles'); ?></li>

    <?
        foreach ($category[0]['Article'] as $article): ?>
    <li>
        <h2 class="title">
        <? echo $html->link($article['title'],'/articles/'.$time->format('Y/m/d',$article['created']).'/'.$article['seo_link']); ?>
        </h2>
        <? if($article["show_author"]==1) { ?>
        <p class="article_author">
            <?php __('Author'); echo ': '.$article['User']['name'].', '; ?>
                        <?php __('Created'); echo ': '.$time->timeAgoInWords($article['created']); ?>
        </p>
        <? } ?>

        <?php echo $article['intro_text']; ?>

        <?
                if($article['show_all']==1) {
                    echo $article['text'];
                }
                ?>
        <p class="article_information">
        <? if($article["show_informations"]==1) { ?>
                        <? __('visited'); echo ': '; echo $article['visited'].', '; ?>
                        <? __('comments'); echo ': '; echo $html->link(count($article['Comment']),'/articles/'.$time->format('Y/m/d',$article['created']).'/'.$article['seo_link'].'/#comments').', '; ?>
                        <? __('category'); echo ': '; echo $html->link($article['Category']['name'],'/categories/view/'.$article['Category']['seo_link']); ?>,
                        <? __('rating'); echo ': '.ife($rating->amount($article['Rating'])>0,$rating->get_rating($article['Rating']).'%','-'); ?>
                    <? } ?>
        </p>
    </li>
    <?php endforeach; ?>

    <li><? echo $pagination->create($url,'articles'); ?></li>

<? } ?>

</ul>